<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');?>
<script type="text/javascript" src="<?php echo JS_PATH?>jquery.sgallery.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH?>qrcode/jquery-1.11.1.js" ></script>
<script type="text/javascript" src="<?php echo JS_PATH?>qrcode/jquery.qrcode.js" ></script>
<script type="text/javascript" src="<?php echo JS_PATH?>qrcode/qrcode.js" ></script> 
<script type="text/javascript" src="<?php echo JS_PATH?>qrcode/utf.js" ></script>
<div id="qrCodeDiv" style="text-align:center"></div>
<script type="text/javascript"> 
<!--
function qrcode(){
		$('#qrCodeDiv').qrcode({
	       render    : "canvas",
	       text    : "<?php echo $url?>",
	       width : "200",               //二维码的宽度
           height : "200",              //二维码的高度
           background : "#ffffff",       //二维码的后景色
           foreground : "#000000",        //二维码的前景色
           src: '<?php echo IMG_PATH?>nsr/qrcode_logo.png'             //二维码中间的图片
	     });
}
$(document).ready(function(){
	qrcode();
	});
//-->
</script>